import { prefix as _prefix } from '@/utils/prefix'
import { getCurrentInstance } from 'vue'

export function usePrefix() {
  const instance = getCurrentInstance()
  function prefix(className: string) {
    return _prefix(className, instance?.proxy?.$options.name)
  }
  return {
    prefix,
  }
} 
